#include <xpp/net/UdpProxy.h>
#include <xpp/net/Udp4Address.h>
#include <xp/bas/stdio.h>

using namespace xpp;
using namespace xpp::net;

extern "C" { int xp_main (); }

int xp_main ()
{
	UdpProxy proxy;
	Udp4Address local (XP_TEXT("domain"));
	Udp4Address target (XP_TEXT("domain"), XP_TEXT("168.126.63.1"));

	if (proxy.execute (local, target) == -1) {
		xp_printf (XP_TEXT("proxy error\n"));
		return -1;
	}

	return 0;
}

